if (USE_PSI3)

  set(formic_dir_for_this_test ${FORMIC_BINARY_DIR}/Testing/tests/two_lih_sto3g)

  file(MAKE_DIRECTORY ${formic_dir_for_this_test})

  configure_file(input.dat ${formic_dir_for_this_test}/input.dat COPYONLY)

  set(FQMC_TEST_ONE_LIH_WFN_BIN_FILE "${FORMIC_BINARY_DIR}/Testing/tests/one_lih_sto3g/wfn_data.bin")
  configure_file(input.txt.in ${formic_dir_for_this_test}/input.txt)

  add_test(NAME two_lih_sto3g_psi3
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND ${PSI3_EXE} input.dat
          )

  add_test(NAME two_lih_sto3g_fqmc
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND fqmc input.txt output.txt
          )

  set(two_lih_sto3g_fci_energy "-15.568920488228")
  set(two_lih_sto3g_rhf_energy "-15.534724200077")
  add_test(NAME two_lih_sto3g_check_results
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND test_checker -compare_float "psi3 scf energy"
                                               output.dat
                                               "SCF total energy   ="
                                               -1
                                               ${two_lih_sto3g_rhf_energy}
                                               1.0e-9
                                -compare_float "fqmc scf hartree fock energy"
                                               output.txt
                                               "Hartree Fock energy ="
                                               0
                                               ${two_lih_sto3g_rhf_energy}
                                               1.0e-9
                                -compare_float "fqmc optimized energy"
                                               output.txt
                                               "mean ="
                                               -1
                                               ${two_lih_sto3g_fci_energy}
                                               5.0e-4
          )
  unset(two_lih_sto3g_fci_energy)
  unset(two_lih_sto3g_rhf_energy)

  unset(formic_dir_for_this_test)

endif (USE_PSI3)

#add_executable(fqmc_test_two_lih test.cpp)
#target_link_libraries(fqmc_test_two_lih formic_fqmc
#                                        formic_test_driver)
#
#configure_file(input.dat ${FORMIC_BINARY_DIR}/src/formic/fqmc/test_two_lih/input.dat
#               COPYONLY
#              )
#
#set(FQMC_TEST_ONE_LIH_WFN_BIN_FILE "${FORMIC_BINARY_DIR}/src/formic/fqmc/test_one_lih/wfn_data.bin")
#configure_file(input.txt.in ${FORMIC_BINARY_DIR}/src/formic/fqmc/test_two_lih/input.txt)
#
#if (USE_PSI3)
#  add_test(NAME psi3_test_two_lih
#           WORKING_DIRECTORY ${FORMIC_BINARY_DIR}/src/formic/fqmc/test_two_lih/
#           COMMAND ${PSI3_EXE} input.dat
#          )
#  add_test(NAME fqmc_test_two_lih
#           WORKING_DIRECTORY ${FORMIC_BINARY_DIR}/src/formic/fqmc/test_two_lih/
#           COMMAND fqmc_test_two_lih input.txt output.txt
#          )
#endif (USE_PSI3)
